<template>
	<view>
		你的

	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		created() {
			console.log('1111111111111111111111111111111111111111111111111')
			this.request()
		},
		methods: {
			request: () => {
				uni.request({
					url: 'http://weather01.market.alicloudapi.com/area-to-weather', //仅为示例，并非真实接口地址。
					data: {
						"areaCode": "530700",
						"needMoreDay": "0",
						"needIndex": "0",
						"needHourData": "0",
						"need3HourForcast": "0",
						"needAlarm": "0",
						"area": "丽江"
					},
					header: {
						'Authorization': 'APPCODE 315664aa56974fa4892d4c9b00e1961b' //自定义请求头信息
					},
					success: (res) => {
						console.log(res.data);
						this.text = 'request success';
					}
				})
			}
		}
	}
</script>

<style>

</style>